import { Modifier } from "../../base/Modifier";

export class StrokeWidthModifier extends Modifier {
    static identity = Symbol("strokewidth");

    applyPeer(node: any, jsValue: any) {
        //通用检查入参格式是否为对象。   
        let strokeWidth = '1px';
        if (jsValue === null || jsValue === undefined) {
            // undefined value use default value.
            jsValue = '1px';
        } else if (typeof jsValue !== "number" && typeof jsValue !== "string") {
            console.log("Vertical: The first param type is not number or string, invalid.");
            return;
        } else if (typeof jsValue === "number" || typeof jsValue === "string") {
            jsValue = jsValue;
        }
        else {
            console.log("Vertical: The first param type is a visibility value.");
            return;
        }

        // Call ViewAbstractModel's JsGridSpan without callback
        // ViewAbstractModel::GetInstance()->SetGrid(span, std::nullopt);

    }
} 